package org.example.l2;

import com.alibaba.fastjson2.JSON;
import lombok.Getter;
import lombok.Setter;

public class CharHelper {

    @Setter
            @Getter
    char[][] chars;

    public static char[][] from(String text) {
        text = "{\"chars\":" + text + "}";
        CharHelper charHelper = JSON.parseObject(text, CharHelper.class);
        return charHelper.chars;
    }

}
